import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '手机',
    align: "center",
    dataIndex: 'mobile'
  },
  {
    title: '密码',
    align: "center",
    dataIndex: 'password'
  },
  {
    title: '登录名',
    align: "center",
    dataIndex: 'username'
  },
  {
    title: '姓名',
    align: "center",
    dataIndex: 'name'
  },
  {
    title: '性别（字典gender）',
    align: "center",
    dataIndex: 'gender'
  },
  {
    title: '用户类型:2,用户;3,商户;4,技师;',
    align: "center",
    dataIndex: 'userType'
  },
  {
    title: '创建时间',
    align: "center",
    dataIndex: 'createDate'
  },
  {
    title: '更新时间',
    align: "center",
    dataIndex: 'updateDate'
  },
  {
    title: '头像',
    align: "center",
    dataIndex: 'avatar'
  },
  {
    title: '昵称',
    align: "center",
    dataIndex: 'nickname'
  },
  {
    title: 'openid',
    align: "center",
    dataIndex: 'openid'
  },
  {
    title: 'open2id',
    align: "center",
    dataIndex: 'open2id'
  },
  {
    title: 'wx',
    align: "center",
    dataIndex: 'wx'
  },
  {
    title: '微信openid',
    align: "center",
    dataIndex: 'wxOpenId'
  },
  {
    title: '微信昵称',
    align: "center",
    dataIndex: 'wxNickname'
  },
  {
    title: '微信头像',
    align: "center",
    dataIndex: 'wxPortrait'
  },
];

// 高级查询数据
export const superQuerySchema = {
  mobile: {title: '手机',order: 0,view: 'text', type: 'string',},
  password: {title: '密码',order: 1,view: 'text', type: 'string',},
  username: {title: '登录名',order: 2,view: 'text', type: 'string',},
  name: {title: '姓名',order: 6,view: 'text', type: 'string',},
  gender: {title: '性别（字典gender）',order: 7,view: 'text', type: 'string',},
  userType: {title: '用户类型:2,用户;3,商户;4,技师;',order: 11,view: 'text', type: 'string',},
  createDate: {title: '创建时间',order: 16,view: 'datetime', type: 'string',},
  updateDate: {title: '更新时间',order: 17,view: 'datetime', type: 'string',},
  avatar: {title: '头像',order: 25,view: 'text', type: 'string',},
  nickname: {title: '昵称',order: 27,view: 'text', type: 'string',},
  openid: {title: 'openid',order: 44,view: 'text', type: 'string',},
  open2id: {title: 'open2id',order: 45,view: 'text', type: 'string',},
  wx: {title: 'wx',order: 58,view: 'text', type: 'string',},
  wxOpenId: {title: '微信openid',order: 76,view: 'text', type: 'string',},
  wxNickname: {title: '微信昵称',order: 77,view: 'text', type: 'string',},
  wxPortrait: {title: '微信头像',order: 78,view: 'text', type: 'string',},
};
